/* 
 * File:   AVLTreeAdapter.h
 * Author: Christopher
 *
 * Created on November 12, 2012, 11:01 PM
 */

#ifndef AVLTREEADAPTER_H
#define	AVLTREEADAPTER_H

#include "TreeInterface.h"
#include "AVLTree.h"
#include<fstream>

class AVLTreeAdapter : public TreeInterface {
public:
    AVLTreeAdapter();
    void insert(Term*);
    Term* search(string word);
    void outputFile(ofstream&);
private:
    AVLTree <string, Term*> tree;
};

#endif	/* AVLTREEADAPTER_H */

